package com.inossem.utils.request;

import com.android.volley.VolleyError;

import java.util.Map;

/**
 * Created by leij on 2017/6/5.
 */

public abstract class VolleyListener<T> {

    //响应头
    private Map<String,String> responseHeaders;

    // 所有响应
    public abstract void onSuccess(T response, Map<String,String> responseHeaders);

    // 非200错误
    public abstract void onError(VolleyError error);

    public Map<String, String> getResponseHeaders() {
        return responseHeaders;
    }

    public void setResponseHeaders(Map<String, String> responseHeaders) {
        this.responseHeaders = responseHeaders;
    }
}
